package com.eportal.service;

import com.eportal.domain.CBuilding;
import com.eportal.domain.Sysopt;
import com.eportal.vo.controller.background.cbuilding.CBuildingSelectListVO;

import java.util.List;
import java.util.Map;


public interface CBuildingService {

    List<CBuilding> list(String where);

    CBuilding add(CBuilding cBuilding) throws Exception;

    void delete(Long id);

    void update(CBuilding cBuilding) throws Exception;

    void delete(List<Long> ids);

    CBuilding get(Long id);

	Map<String, Object> addMethod(int building1, int building2, String preBuilding, int unit, String preUnit, int floor, int room, String communityId);


//todo ----------------------------------------------------------------------------------------------------------------------------------------

    /**
     * 楼栋下拉列表
     * @author Saber
     * @Date 2017/8/10 上午9:07
     * @param communityId       小区id
     * @param user              当前用户
     * @param userRole          当前用户userRole
     * @return
     */
    List<CBuildingSelectListVO> selectList(String communityId, Sysopt user, int userRole);
}
